<?php

/**
 * @author Christoph Vieth <mail@christoph-vieth.de>
 */
include_once 'modules/module.php';

class moduleContacts extends module {

    public $renderEngine;
    public $templateData;

    public function __construct() {
        
    }

    public function run($param = NULL) {
        // Initialize module
        parent::__construct('JSON');

        // Generate dummy data
        $contact = array();
        $contact['surename'] = 'Max';
        $contact['lastname'] = 'Mustermann';
        $contact['tel_home'] = '0800567811';
        $contact['tel_work'] = '0800567811';
        $contact['tel_mobile'] = '0800567811';

        $result = array();

        for ($i = 0; $i < 5; $i++) {

            $result[$i] = $contact;
        }
        $this->templateData = $result;
    }

}

?>
